﻿using System.Net;

namespace MC2Development.DevWebServer.Interfaces
{
    /// <summary>
    /// Interface to be implemented by any class processing incoming requests
    /// </summary>
    internal interface IRequestProcessor
    {
        /// <summary>
        /// Processes an incoming request
        /// </summary>
        /// <param name="context">Http context associated with the request</param>
        /// <param name="serverParameters">Parameters used to initialise the web server</param>
        void ProcessRequest(HttpListenerContext context, ServerParameters serverParameters);
    }
}
